package Document::PageWithHeadersAndFooters;

use Moose;

extends 'Document::Page';

augment 'create' =>sub {
	my $self = shift;
	$self->create_header;
	inner();
	$self->create_footer;
};

sub create_header { (shift)->append_body('<header/>') }
sub create_footer { (shift)->append_body('<footer/>') }

__PACKAGE__->meta->make_immutable;